package com.sun.showcase.client.enums;

public enum SmsTypeEnum {

	REGISTER("1","SMS_175705044");//注册
	
	private String key;
	
	private String template;
	
	SmsTypeEnum(String key,String template){
		
		this.key = key;
		
		this.template = template;
	}
	
	
	public static String getTemplateBy(String key) {
		
		for(SmsTypeEnum v : SmsTypeEnum.values()){
           
			if(v.key.equals(key)) {
				
				return v.template;
			}
        }
		
		return null;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getTemplate() {
		return template;
	}

	public void setTemplate(String template) {
		this.template = template;
	} 
	
	
}
